/// total : 2
/// rows : [{"userId":"361888213119512576","userName":"13500000099","userIcon":"","recordId":"471688429051719681","surveyId":"471688429051719680","type":1,"description":"就业调研描述","tempId":"471689327261921280","surveyTitle":"测试普通调研1","teacherName":"于鹏程","isSubmit":0,"status":0,"createTime":1637563285000},{"userId":"361888213119512576","userName":"13500000099","userIcon":"","recordId":"471688542520225793","surveyId":"471688542520225792","type":2,"description":"就业调研描述","tempId":"471689327261921280","surveyTitle":"测试模版调研2","teacherName":"于鹏程","isSubmit":1,"status":1,"createTime":1637563312000}]
/// code : 200
/// msg : "查询成功"

class SurveyDto {
  SurveyDto({
    int? total,
    List<Rows>? rows,
    int? code,
    String? msg,
  }) {
    _total = total;
    _rows = rows;
    _code = code;
    _msg = msg;
  }

  SurveyDto.fromJson(dynamic json) {
    _total = json['total'];
    if (json['rows'] != null) {
      _rows = [];
      json['rows'].forEach((v) {
        _rows?.add(Rows.fromJson(v));
      });
    }
    _code = json['code'];
    _msg = json['msg'];
  }
  int? _total;
  List<Rows>? _rows;
  int? _code;
  String? _msg;

  int? get total => _total;
  List<Rows>? get rows => _rows;
  int? get code => _code;
  String? get msg => _msg;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['total'] = _total;
    if (_rows != null) {
      map['rows'] = _rows?.map((v) => v.toJson()).toList();
    }
    map['code'] = _code;
    map['msg'] = _msg;
    return map;
  }
}

/// userId : "361888213119512576"
/// userName : "13500000099"
/// userIcon : ""
/// recordId : "471688429051719681"
/// surveyId : "471688429051719680"
/// type : 1
/// description : "就业调研描述"
/// tempId : "471689327261921280"
/// surveyTitle : "测试普通调研1"
/// teacherName : "于鹏程"
/// isSubmit : 0
/// status : 0
/// createTime : 1637563285000

class Rows {
  Rows({
    String? userId,
    String? userName,
    String? userIcon,
    String? recordId,
    String? surveyId,
    int? type,
    String? description,
    String? tempId,
    String? surveyTitle,
    String? teacherName,
    int? isSubmit,
    int? status,
    int? createTime,
  }) {
    _userId = userId;
    _userName = userName;
    _userIcon = userIcon;
    _recordId = recordId;
    _surveyId = surveyId;
    _type = type;
    _description = description;
    _tempId = tempId;
    _surveyTitle = surveyTitle;
    _teacherName = teacherName;
    _isSubmit = isSubmit;
    _status = status;
    _createTime = createTime;
  }

  Rows.fromJson(dynamic json) {
    _userId = json['userId'];
    _userName = json['userName'];
    _userIcon = json['userIcon'];
    _recordId = json['recordId'];
    _surveyId = json['surveyId'];
    _type = json['type'];
    _description = json['description'];
    _tempId = json['tempId'];
    _surveyTitle = json['surveyTitle'];
    _teacherName = json['teacherName'];
    _isSubmit = json['isSubmit'];
    _status = json['status'];
    _createTime = json['createTime'];
  }
  String? _userId;
  String? _userName;
  String? _userIcon;
  String? _recordId;
  String? _surveyId;
  int? _type;
  String? _description;
  String? _tempId;
  String? _surveyTitle;
  String? _teacherName;
  int? _isSubmit;
  int? _status;
  int? _createTime;

  String? get userId => _userId;
  String? get userName => _userName;
  String? get userIcon => _userIcon;
  String? get recordId => _recordId;
  String? get surveyId => _surveyId;
  int? get type => _type;
  String? get description => _description;
  String? get tempId => _tempId;
  String? get surveyTitle => _surveyTitle;
  String? get teacherName => _teacherName;
  int? get isSubmit => _isSubmit;
  int? get status => _status;
  int? get createTime => _createTime;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['userId'] = _userId;
    map['userName'] = _userName;
    map['userIcon'] = _userIcon;
    map['recordId'] = _recordId;
    map['surveyId'] = _surveyId;
    map['type'] = _type;
    map['description'] = _description;
    map['tempId'] = _tempId;
    map['surveyTitle'] = _surveyTitle;
    map['teacherName'] = _teacherName;
    map['isSubmit'] = _isSubmit;
    map['status'] = _status;
    map['createTime'] = _createTime;
    return map;
  }
}
